package abstractFactory;

import abstractFactory.factory.AbstrctFactory;
import abstractFactory.factory.FactoryEnum;
import abstractFactory.factory.FactoryProvider;

public class DemoTest {
    public static void main(String[] args) {
        AbstrctFactory appleComputerFactory = FactoryProvider.getComputerFactory(FactoryEnum.APPLE);
        appleComputerFactory.getMouse().sayHello();
        appleComputerFactory.getKeyBo().sayHello();
    }

}
